<?php


class LABB_Module_13 extends LABB_Module {

    function render() {

        $module = $this;

        ob_start();
        ?>

        <article
                class="labb-module-13 <?php echo $module->get_module_classes(); ?> <?php echo join(' ', get_post_class('', $module->post_ID)); ?>">

            <?php if ($thumbnail_exists = has_post_thumbnail($module->post_ID)): ?>

                <div class="labb-module-image">

                    <div class="labb-module-thumb">

                        <?php echo $module->get_media(); ?>

                        <?php echo $module->get_lightbox(); ?>

                    </div>

                    <div class="labb-module-image-info">

                        <div class="labb-module-entry-info">

                            <?php echo $module->get_media_title(); ?>

                            <?php echo $module->get_media_taxonomy(); ?>

                        </div>

                    </div>

                </div>

            <?php endif; ?>

            <div class="labb-module-entry-text">

                <?php echo $module->get_title(); ?>

                <div class="labb-module-meta">
                    <?php echo $module->get_author(); ?>
                    <?php echo $module->get_date(); ?>
                    <?php echo $module->get_comments(); ?>
                    <?php echo $module->get_taxonomies_info(); ?>
                </div>

                <div class="labb-excerpt">
                    <?php echo $module->get_excerpt(); ?>
                </div>

                <?php echo $module->get_read_more_link(); ?>

            </div>

        </article><!-- .hentry -->

        <?php $output = ob_get_clean();

        return apply_filters('labb_block_module_13', $output, $module);
    }
}